Repository navigation
refactor(studio): every Studio address comes from one builder; no address changes - #36973
Conversation
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…uilder (#36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…der (#36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
… ones (#36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…#36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…ope audit does not read it as a REST module (#36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…, calls the builder (#36895) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…udio-path-helper StudioDesignSurface.tsx import block: main (#36956) dropped the draftVerdict import and this branch dropped the nav-selection import; both deletions kept. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
📓 Docs Drift CheckThis PR changes 3 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 62 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0337f4eecbc66d3ff8c1fbb67b55969227b8c98a && git checkout 0337f4eecbc66d3ff8c1fbb67b55969227b8c98a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4c4a677721d33e3d48637647466042aa3b15b5b0 b6e22ef09384a52025c3fc5ba525102121bcef68 && git checkout -B drift-repro 4c4a677721d33e3d48637647466042aa3b15b5b0 && git merge --no-ff b6e22ef09384a52025c3fc5ba525102121bcef68
node scripts/docs-audit/affected-docs.mjs --json 4c4a677721d33e3d48637647466042aa3b15b5b0
|
… guard spares Route path patterns (#36895) A route pattern declares what the console serves and builds no link. The console route table is read as source text by the onSuccess navigate-host pin, whose control reads every top-level path="/..." literal; spelling the pattern through STUDIO_ROOT_PATH took 'studio' out of that table. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — REWORK · repo:objectstack#3 · head 2a9f6e9 · 2026-11-24T13:55ZL1: REWORK Read
Checklist
Answers to ux-A's three questions
FindingsNo must-fix.
Delta read owed: L1 on the new head plus a |
…segment is dropped (#36895) @objectstack/types is published and its entry gains studioChangesReviewLink and studioItemReviewLink, a widening of its public surface. Metadata-protocol stays none, so the bumps stay patch. Doc only in studioAddress.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head 2fec7fb · 2026-11-24T14:02Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract reviewServed-tier: This is the declaration face. The review is owed by the Inputs read:
Nothing was built, run or re-run. ① Derived judgments
② Semver level
③ Boundary flags
F1 has no effect on correctness or the contract, so this is the final round. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — ACCEPT · repo:objectstack#3 · head 2fec7fb · 2026-11-24T14:37ZL1: ACCEPT Delta read
Findings
No must-fix and no should-fix remain open. ux-A lands it on full green. Landing order with #36985 (#36899): whichever PR lands second repoints |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU Landing · 2026-11-24T14:38Z · ACCEPT 7134683237 at head 2fec7fb · TIER_DEFAULT L2 PASS 7133872199 (same head)
Open findings: nits only (L1 N2: the guard reads literals only, so a path composed onto a builder's output passes it, and designer-card reviews watch for one; N3: the eval file holds 7 links, not the claim's five, and all 7 are pinned; L2 F1: the changeset's server bullet could name the Console's twin builders). Landing order with #36985 (#36899): whichever lands second reconciles StudioDesignSurface.tsx (take #36899's nav deletion) and metadataArea.ts (keep both imports), and repoints studioMenuModel.ts's |
…udio-path-helper HomePage.tsx: main (#36989) added the catalogServesBuild import beside this branch's studioLandingPath import; both kept. useAddAppEntries.ts: main's buildServed condition kept, its '/studio' target written as studioLandingPath() (byte-identical). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract-review-claim: session_01WGufzhjqviExWpzQMm57Mt · head b6e22ef · 2026-11-24T15:12Z |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt Contract reviewServed-tier: This is a delta round on record 7133872199 (head Inputs read:
Nothing was built, run or re-run. ① Derived judgments
② Semver level
③ Boundary flags
No finding. Landing waits for full green on this head; that is a landing check, not part of this verdict. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhjqviExWpzQMm57Mt 席位核对 — ACCEPT · repo:objectstack#3 · head b6e22ef · 2026-11-24T15:14ZL1: ACCEPT Merge-round read
Every round-1 and round-3 finding stays as recorded. Landing still requires full green on |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU Re-landing · 2026-11-24T15:38Z · merge-round ACCEPT 7135695234 at head b6e22ef · TIER_DEFAULT L2 PASS 7135676769 (same head) The queue dropped the previous landing (7134722281) with MERGE_CONFLICT against #36989. The round-4 merge of main 4c4a677 resolved it (delta 7135603814), and the net diff is unchanged (37 files, +1351/−143).
Open findings: nits only, as recorded in 7134722281. Landing order with #36985 (#36899) is unchanged: whichever lands second repoints studioMenuModel.ts onto studioAddress.ts. State: ready + auto-merge (Tier S). On MERGED, #36895 closes by |
Requested by Yibo Wang · project thread
Fixes #36895
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
One builder for every Studio address, and every producer the card lists now calls it. Every address is byte-for-byte what it was before. Nothing redirects and no route changes.
ui/packages/app-shell/src/views/studio-design/studioAddress.ts. It holdsstudioPath, the one path builder, and on top of itstudioLandingPath,studioPackagePath,studioPillarPath,studioHomePath,studioItemPath,studioPillarItemAddress,studioSurfaceQuery, the "All metadata" builders,studioChangesReviewPathandstudioItemReviewPath.~org,~all,metadata,interfaces, and thechangesandreviewparams. The modules that exported these before re-export them under the same names.STUDIO_ITEM_PILLARis the per-type switch.AREA_PILLAR_FOR_TYPE, which the area's pillar redirect reads, is now this same object. When a designer card deletes a type's row, everystudioItemPathcaller and the area redirect move together, so the two cannot loop.studioAddressTable.ts. It has three tables:STUDIO_ADDRESS_FAMILIES: 13 address shapes.STUDIO_ITEM_TYPES:object(with itsview,actionandnavqualifiers),flow,permission, andowd:overview. Each row gives today's pillar and the metadata address the type moves to.STUDIO_QUERY_PARAMS:surface,view,action,nav,changes=review,review=1,package,scope=environmentandnew. Each row says whether the param is carried verbatim, rides as a qualifier, or is replaced./interfacesredirect (retiredInterfacesTarget, landed by fix(studio): retire Studio's Interfaces column (objectstack#36502) #36884) now reads which params it keeps from this table (STUDIO_RETIRED_INTERFACES_KEPT_PARAMS). Its output is unchanged.?surface=spellings, all kept. Producers did not agree on how to write the value, and each spelling is kept as a named option (StudioSurfaceSpelling):'component'(surface=object%3Aaccount) is used by most producers.'name'(surface=object:account) is used byappStudioObjectPath.'form'(URLSearchParams,surface=object%3Aa&action=x) is used byswitchedOffActionPath.segmentEncoding: 'verbatim'.@objectstack/types:packages/types/src/studio-review-links.tsexportsstudioChangesReviewLinkandstudioItemReviewLink. Both server producers already depend on@objectstack/types, and neither may depend on the Console.packages/cli/src/commands/meta/register.tsandpackages/runtime/src/domains/mcp-authoring.ts(reviewRoutes) now call them. The review-link text served to the AI is unchanged (pinned below).@objectstack/spec: that would add a contract-package export, and spec holds no runtime logic.-links, not-routes, becausecheck:route-envelopereads any*-routes.tsas a REST module.appRoute.ts×3,metadataArea.ts,setupMetadataRedirect.ts×3,CommandPalette.tsx,studioScope.ts,artifactStudioPath.ts,AiChatPage.tsx,AppNoAccessEmptyState.tsx,RecordTabsConfig.tsx,DashboardInPageEditor.tsx,BuilderLanding.tsx,studioChangesLink.tsandswitchedOffActionTargets.ts.StudioDesignSurface.tsx: only its four hand-built call sites are swapped (pair-base redirect, Access pillar open,requestSurface, pillar nav links). The edit merges cleanly with Studio 重构(P0):StudioDesignSurface.tsx 纯搬移拆文件——数据、自动化、访问三个分区各成一个模块,保留再导出 #36893's split branch (git merge-tree, exit 0).StudioRoute.tsxandAppContent.tsx. Route patterns useSTUDIO_ROOT_PATH, and the:packageIdlanding redirect usesSTUDIO_HOME_PILLAR, the same relativedata.InterfacesNavRail.tsxis gone, as stated.PackagesPage.tsx's localstudioPackagePathnow returnsstudioHomePath.studioInterfacesRetired.tsmetadataArea.ts:studioMetadataAreaPath,studioMetadataItemPath,areaLocationRedirectsetupMetadataStudioPathitselfswitchedOffActionTargets.ts: the action item path andswitchedOffActionListPathstudioNewPackage.ts(STUDIO_NEW_PACKAGE_PATH) andPackageSwitcher.tsx(STUDIO_LANDING_PATH)HomePage.tsxanduseAddAppEntries.ts(bare/studio)~orgflow, BuilderLanding's~orgcard, and RecordTabsConfig, which now callsstudioItemPath).@object-ui/app-shell:STUDIO_ROOT_PATH,STUDIO_HOME_PILLAR,studioLandingPathandstudioPackagePath.Why
The Studio redesign moves objects, flows and permission sets from pillar addresses to metadata addresses (
/studio/PKG/metadata/TYPE/NAME). The area already redirects a pillar type back to its pillar. Redirecting the pillar address first would loop, so every producer has to share one builder before any designer card flips its type.Tests
studioAddress.test.ts(new) pins each builder to literal addresses: every family, all three spellings, verbatim segments, search and hash, the area, the review links, and the repointed module builders. It also checks that the table agrees with the code (AREA_PILLAR_FOR_TYPEisSTUDIO_ITEM_PILLAR, item rows, param keys, family builders, and the params kept on the/interfacesredirect).studioAddress.guard.test.ts(new) is the guard. It parses every non-test source underui/packages/PKG/srcandui/apps/APP/srcand refuses two things:/studio;STUDIO_ROOT_PATH.studioAddress.ts(and the table's placeholder shapes) are allowed.packages/types/src/studio-review-links.test.ts(new) pins the server's two links to literals.packages/types/src/studio-review-links.callers.test.ts(new,repoproject) has two parts:/studioliteral in anypackages/**.tssource outside the shared module, with controls: both server producers are walked, and the matcher fires twice on the allowed file.skills/objectstack-mcp-build/evals/draft-door-procedure.jsonequal tostudioChangesReviewLink/studioItemReviewLinkfor the package, type and name that link names. The file has 7 quoted links: 5 Changes links and 2 item reviews, 3 distinct values. The skill file is not edited.vitest.repo-tests.json,CROSS_PACKAGE_TEST_INPUTS, and the@objectstack/types#test:repoturbo inputs. Ci.yml'scrosspkg:filter already covers the skills root.Local runs (head fa0deb8, after merging origin/main 4f9a3f8)
pnpm --dir ui exec vitest runon the 171 test files that name a repointed producer, the package list, or the builder:Test Files 171 passed (171),Tests 1777 passed (1777). The full app-shell + console suite (2736 files) is CI's Test UI; it was started locally and stopped, since at two workers it did not finish in an hour.@objectstack/types:local, studio-review-links.test.ts: 2 passed;repo, studio-review-links.callers.test.ts: 3 passed.@objectstack/runtimesrc/domains/mcp-authoring.test.ts: 50 passed.@objectstack/cli--project integration src/commands/meta/register-draft.test.ts: 10 passed. Run locally because it is the one test that pins the CLI's printed review link.pnpm --filter @objectstack/types typecheckandpnpm --filter @object-ui/app-shell type-check: exit 0 on fa0deb8.@objectstack/runtimeand@objectstack/clitypecheck: exit 0 on 947b96e, the pre-merge head.@object-ui/consoletype-checkwas NOT MEASURED: it needs every ui plugin's dist built, so it is left to CI's Type Check UI.pnpm --dir ui exec vitest run scripts/: 172 passed, 2 skipped.pnpm --dir ui check:new-line-citations: 0 new.Acceptance notes
PILLAR_FOR_SURFACE_TYPE(identical toSTUDIO_ITEM_PILLARtoday). The Automations and Access pillars callstudioPillarItemPath(..., 'automations' | 'access', ...)explicitly. Neither is hand-built, so the guard passes. I left them alone to keep this diff to call-site swaps that merge cleanly with Studio 重构(P0):StudioDesignSurface.tsx 纯搬移拆文件——数据、自动化、访问三个分区各成一个模块,保留再导出 #36893's move-only split. The flow and permission designer cards switch those call sites, or fold the map intoSTUDIO_ITEM_PILLAR, in the same PR that flips the type.studioItemPillarlooks up the type map withhasOwnProperty. The oldAREA_PILLAR_FOR_TYPE[type]lookup matchedObject.prototypemembers, so/studio/PKG/metadata/constructor/xredirected to a garbage pillar URL. It now opens the generic item page. This is pinned instudioAddress.test.ts. No metadata type has such a name.overlap-checkexits 1 on two PRs.draftVerdictimport lines directly above thenav-selectionimport, and this PR deletes that import (its last user was therequestSurfacecall site). The resolution is to keep both deletions. All four of this PR's call sites stay in StudioDesignSurface after the split, and none is in a moved region.origin/mainitself at the same single hunk (the react-router import, a line this PR does not touch): conflict count 1 with this branch and 1 with main alone.Verification
StudioDesignSurface.tsxhunks (four call sites, verbatim segment);metadataArea.ts(the area's redirect now readsSTUDIO_ITEM_PILLAR);studioAddress.tsstudioSurfaceQuery(the three spellings).pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioAddress.test.ts packages/app-shell/src/views/studio-design/studioAddress.guard.test.ts. Expect 2 files and all tests passing. Then add any literal beginning with/studioto a ui source and watch the guard name the file and line.Human Minimum
packages/specholds no runtime logic. (spec untouched)pnpm lintpasses. (CI)main, one pull request.packages/spectouched: n/a.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU